package com.pig4cloud.pig.module.api.entity.farm;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 农场对象 farm
 *
 * @author ruoyi
 * @date 2021-12-15
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("farm")
public class Farm implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 所属小区id
     */
    private Integer estateId;

    /**
     * 微信用户id
     */
    private Integer userId;

    /**
     * 农场名字
     */
    private String farmName;

    /**
     * 农场类型  0 - 总农场入口
     */
    private Integer farmType;

    /**
     * 添加时间
     */
    @TableField(fill = FieldFill.INSERT)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 状态
     */
    private Integer state;

}
